//
//  PhotoCollectionViewCell.m
//  项目1 CLCMovie
//
//  Created by huiwenjiaoyu on 15/7/23.
//  Copyright (c) 2015年 CLC. All rights reserved.
//

#import "PhotoCollectionViewCell.h"

@implementation PhotoCollectionViewCell
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        photoView = [[PhotoScrollView alloc] initWithFrame:self.bounds];
        [self.contentView addSubview:photoView];
        photoView.imageURL = self.imageURL;
        
    }
    return self;
}

- (void)setImageURL:(NSString *)imageURL
{
    _imageURL = imageURL;
    [self setNeedsLayout];
}

- (void)layoutSubviews
{

    photoView.imageURL = _imageURL;
    
    
}


@end
